import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element'
import 'element-ui/lib/theme-chalk/index.css'
import './assets/css/global.css'
import axios from 'axios'
import store from './store/index'
import './assets/icon/iconfont.css'
import cookies from 'vue-cookies'

// import {Notification} from 'element-ui'


Vue.config.productionTip = false

// 网络请求 相关
axios.defaults.baseURL = 'http://localhost:9003'
axios.defaults.withCredentials = true                 // 允许前端请求携带Cookie
Vue.prototype.$http = axios
Vue.prototype.$cookies = cookies


// 成功失败弹框相关
// Vue.prototype.$notify = Notification

// 保存频繁使用的数据
Vue.prototype.$store = store


new Vue({
  render: h => h(App),
  router
}).$mount('#app')
